// 配置信息文件

const SERVER_URL = "https://wenjie.store/ut/"
const WSS_URL = "wss://wenjie.store/ut/ws"

// const SERVER_URL = "http://localhost:8080/ut/"
// const WSS_URL = "ws://localhost:8088/ut/ws"

const STATUS_OK = 200
const USER_ROLE = {
  ROLE_ADMIN: {
    id: 8,
    name: "管理员"
  },
  ROLE_TOURIST: {
    id: 0,
    name: "游客"
  },
  ROLE_STUDENT: {
    id: 1,
    name: "学生"
  },
  ROLE_TUTOR: {
    id: 2,
    name: "导师"
  },
  ROLE_SPONSOR: {
    id: 4,
    name: "活动主办方"
  }
}

const MSG_TYPE = {
  RECEIVED_INVITATION: {
    type: 1,
    desc: "入队邀请"
  },
  RECEIVED_APPLICATION: {
    type: 2,
    desc: "入队申请"
  },
  COMMENT: {
    type: 3,
    desc: "帖子评论/回复"
  },
  AUTH: {
    type: 1000,
    desc: "desc"
  },
  KEEPALIVE: {
    type: 1001,
    desc: "心跳包"
  },
  SINGLE_TEXT_MSG: {
    type: 2000,
    desc: "单聊文本消息"
  },
  SINGLE_IMG_MSG: {
    type: 2001,
    desc: "单聊图片消息"
  },
  SERVER_ACK: {
    type: 3001,
    desc: "服务端ack"
  },
  CLIENT_ACK: {
    type: 3002,
    desc: "客户端ack"
  },
}

module.exports = {
  STATUS_OK,
  SERVER_URL,
  WSS_URL,
  USER_ROLE,
  MSG_TYPE
}
